<?php
Class Comprend extends Enregistrement {
	
	function __construct(Configuration $c, Basededonnees $b=NULL,
		$idSession="", $idExamen="") {
		parent::__construct($c,$b);
		$this->init($idSession, $idExamen);
	}
	
		
	public function init($idsession="", $idexamen="") {
		$this->table="comprend";
		$this->cle="idcomprend";
		$this->setidcomprend('');
		$this->setidsession($idsession);
		$this->setidexamen($idexamen);
	}
	
	public function vider() {
		parent::vider();
		$this->init();
	}
			
	public function setidcomprend($id) {
		$c=new Champs('idcomprend',$id,'nombre');
		$c->setlibelle('ID Comprend');
		$this->setchamps($c);
	}
	
	public function getidcomprend() {
		return $this->getunchamps('idcomprend')->getvaleur();
	}
	
	public function setidsession($id) {
		$c=new Champs("idsession", $id, "nombre");
		$c->setlibelle("ID Session");
		$this->setchamps($c);
	}

	public function getidsession() {
		return $this->getunchamps('idsession')->getvaleur();
	}
	
	public function setidexamen($id) {
		$c=new Champs('idexamen', $id, 'nombre');
		$c->setlibelle('ID Examen');
		$this->setchamps($c);
	}

	public function getidexamen() {
		return $this->getunchamps('idexamen')->getvaleur();
	}
	
}
?>